package edu.zut.hb.ambition.report.impl;
import edu.zut.hb.ambition.base.service.impl.GenericTreeManagerImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


import java.util.ArrayList;
import java.util.List;


@Component
@Transactional
public class OutpatienttypeMangerImpl extends GenericManagerImpl<Outpatienttype,Long>
        implements OutpatienttypeManager {

    OutpatienttypeDao OutpatienttypeDao;

    @Autowired
    public void setOutpatiebttypeDao(OutpatienttypeDao outpatienttypeDao) {
        this.OutpatienttypeDao = OutpatienttypeDao;
        this.dao = this.ReportDao;
    }

    @Override
    public List list() {
        List list = new ArrayList();
        for (int i = 0; i < 100; i++) {
            Outpatienttype outpatienttype = new Outpatienttype();
            outpatienttype.setCode("cart_"+i);
            outpatientype.setPrice(i);
            outpatienttype.setEntityName("edu.zut.hb.fortune");
            list.add(outpatienttype);
        }
        return list;
    }

}